// main_view_controller.dart
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class MainViewController extends GetxController {
  ///初始化时候触发
  @override
  void onInit() {
    super.onInit();
  }

  ///构建完第一轮的时候触发
  @override
  void onReady() {
    super.onReady();
  }

  ///页面切换的索引
  final RxInt currentIndex = 0.obs;

  void bottomNavigationBarTap(int? index) {
    currentIndex(index!);
  }
}